*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
a{
    text-decoration: none;
    color:inherit;
    -webkit-tap-highlight-color: transparent;   
}
i,em{
    font-style: normal;
}
input,button{
    border: none;
    outline: none;
}
img{
    display:block;
    width: 100%;

}
ul{
    list-style: none;
}
.clearfix::after{
    content:"";
    display: block;
    height: 0;
    line-height: 0;
    clear: both;
}  

$c1:#0094ff;
@mixin bar($x, $y) {
    background-image: url(../images/icon_bar.png);
    background-repeat: no-repeat;
    background-size: 220px 132px;
    background-position: $x $y;
}
body{
    background-color: #f6f6f6;
}
// 头部
header {
    height: 50px;  
   .h-top{
        background-color: $c1;
        padding: 5px 10px 10px 15px;
        text-align: center;
        color: #fff;
        font-size: 20px;
        height: 50px;
        line-height: 35px;
        width: 100%;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 10;
       h1 {
        float: left;
        >a{
            display: block;
            width: 34px;
            height: 34px;
            @include bar(-100px,-2px )
            }
        }
        .load {
            float: right;
            width: 34px;
            height: 34px;
        }
     }
}
// 导航栏
nav{
        height: 30px;
    .nav-top{  
        overflow: hidden;
        width: 100%;
        /* overflow: scroll;    */
        background-color: #fff;
        ul{
            width:250%;  
            height: 30px;    
            display: flex;
            li{
                flex: 1;
                display: flex;
                justify-content: center;
                align-items: center;
                padding-top: 3px;
                >a{
                    height: 100%;
                    font-size: 14px;
                }
                .selector{
                    color:red;
                    border-bottom: 2px solid red;
                }
                
            }
            
        }
    }
}

//白菜价商品类别
.bc-goods{
    >ul{
        // display: flex;
        // flex-wrap: wrap
        margin: 10px 3px;
        >li{
            width: 100%;
            display: flex;
            background-color: #fff;
            margin: 5px 0;
            font-size: 14px;
            .bc-left{
                width: 40%;
                padding: 5px 5px;
            }
            .bc-right{
                width: 60%;
                position: relative;
                padding-bottom: 27%;
                h5{
                    font-size: 14px;
                }
                .jiage{
                    color:red;
                    font-size: 16px;
                    // padding: 5px 0;
                    position: absolute;
                    left: 0;
                    bottom: 45%;
                    margin-left: 5px;
                    i,em{
                        font-size: 14px;
                        padding: 0 2px;
                    }
                    del{
                        font-size: 12px;
                        color: #ccc;
                        padding: 0 10px;
                    }
                }
                .bar{
                    font-size: 12px;
                    position: absolute;
                    left: 0;
                    bottom: 27%;
                    width: 100%;
                    >i{
                        color: #fff;
                        margin: 5px;
                        float: left;
                        height: 15px;
                        width: 40%;
                        border-radius: 5px;
                        border:1px solid #fc353a;
                        background-color: #ffb7b7;
                        overflow: hidden;
                        position: relative;
                       em{
                        // display: block;
                        height: 100%;
                        position: absolute;
                        left: 0;
                        top: 0;
                        background-color: #fc353a;
                        border-radius: 5px;
                       }
                       span{
                        position: absolute;
                        left: 40%;
                        top: -1%;
                       }
                    }
                    >b{
                        float: left;
                        margin-left: 5px;
                        color: red;
                        font-weight:400;
                        margin: 5px;
                    }
                }
                .quan{
                    font-size: 12px;
                    position: absolute;
                    left: 0;
                    bottom: 2%;
                    width: 100%;
                    >a:nth-child(1){
                        margin-left: 5px;
                        padding: 4px;
                        border:1px dashed red;
                        color: red;
                        float: left;
                    }
                    >a:nth-child(2){
                        padding: 6px 4px;
                        background-color: red;
                        color: #fff;
                        float: right;
                        border-radius: 5px;
                        margin-right: 5px;
                    }
                }
            }
        }
    }
}


// 底部
footer {
    background-color: #eee;
    height: 90px;
    margin-top: 20px;
    text-align: center;
    font-size: 14px;
    .fuwu {
        height: 40px;
        border-top: 1px solid #dedede;
        border-bottom: 1px solid #dedede;
        display: flex;
        margin-bottom: 10px;
        >a {
            width: 30%;
            display: flex;
            justify-content: center;
            align-items: center;
        }
        >a:last-child {
            width: 40%;
            span {
                width: 25px;
                height: 20px;
                @include bar(-142px, -12px);
            }
        }
        >a:nth-child(2) {
            border-left: 1px solid #ccc;
            border-right: 1px solid #ccc;
        }
    }
    p {
        font-size: 12px;
        a {
            color: red;
        }
        span {
            color: #666;
        }
    }
    p:last-child {
        color: #666;
        padding: 2px;
    }
}

// 右边会底部
.go-top{
    display: block;
    position: fixed;
    right: -40px;
    bottom: 10%;
    background-color: #808080;
    z-index: 5;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    @include bar(-134px, -3px);
}



// 补充弹出层
html{
    height: 100%;
}
body{
    height: 100%;
}
.layout{
    position: fixed;
    top:0;
    left: 0;
    width: 100%;
    height: 100%;
    background:rgba(0, 0, 0, .5);
    z-index: 1000;
    .text{
        width: 130px;
        height: 50px;
        font-size: 14px;
        background-color: #333;
        color: #fff;
        position: relative;
        left: 50%;
        top: 50%;
        transform: translate(-50%,-50%);
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        text-align: center;
        border-radius: 5px;
    }
} 